import request from '@/common/request'

export function getTaskList(data) {
    var data = Object.keys(data).map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&');
    return request({
        url: '/apikanke/task/getTaskList?'+data,
        method: 'get',
        data:data,
    })
}

export function getTaskDetail(data) {
    return request({
        url: '/apikanke/task/getTaskDetail',
        data:data,
        method: 'post'
    })
}

export function getTaskDetailByDay(data) {
    return request({
        url: '/apikanke/task/getTaskDetailByDay',
        data:data,
        method: 'post'
    })
}


export function getTaskDateInfo(data) {
    return request({
        url: '/apikanke/task/getTaskDateInfo',
        data:data,
        method: 'post'
    })
}

